from common.unit import AndroidUI


# 装箱操作
class PackingObject:

    def __init__(self):
        self.driver = AndroidUI.get_webdriver()

    # 登录信息
    def login_name(self):
        element = self.driver.find_element_by_id("com.bluephone:id/login_name_text")
        return element

    # 重启蓝牙
    def restart_bluetooth_button(self):
        element = self.driver.find_element_by_id("com.bluephone:id/restart_bluetooth")
        return element

    # 置零
    def clear_zero_button(self):
        element = self.driver.find_element_by_id("com.bluephone:id/bale_clear_zero")
        return element

    # 当前重量    当前重量： 0.15KG
    def bale_date_tex(self):
        element = self.driver.find_element_by_id("com.bluephone:id/bale_date_text")
        return element

    # 装箱按钮
    def pack_box_button(self):
        element = self.driver.find_element_by_id("com.bluephone:id/bale_out_code")
        return element

    # 未装箱按钮
    def unboxed_button(self):
        element = self.driver.find_element_by_id("com.bluephone:id/listUnpack")
        return element

    # 箱列表按钮
    def listbox_button(self):
        element = self.driver.find_element_by_id("com.bluephone:id/listbox")
        return element

    # 返回按钮
    def back_button(self):
        element = self.driver.find_element_by_id("com.bluephone:id/iv_back")
        return element

    # 未装箱类列表中的元素
